package com.ccn.crm.service.impl;

import com.ccn.crm.mapper.EffortMapper;
import com.ccn.crm.model.Effort;
import com.ccn.crm.service.IEffort;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EffortServiceImpl implements IEffort {

    @Autowired
    private EffortMapper iEffort;

    @Override
    public Double selectConsumed(String product) {

            return iEffort.selectConsumed(product);

    }

    @Override
    public List<Effort> selectProduct(String product) {

        return iEffort.selectProduct(product);
    }

    @Override
    public Effort selectEndUpdateTime(String product) {
        return iEffort.selectEndUpdateTime(product);
    }
}
